@echo off
set SERVICE_NAME=ProjectDailyReport
set SERVICE_HOME=.\bin\Debug
set SERVICE_EXE=%SERVICE_NAME%.exe
REM the following directory is for .NET 2.0, your mileage may vary
set INSTALL_UTIL_HOME=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
REM Account credentials if the service uses a user account
set USER_NAME=Administrator
set PASSWORD=490410056

set PATH=%PATH%;%INSTALL_UTIL_HOME%

cd %SERVICE_HOME%

echo Installing Service...
installutil /name=%SERVICE_NAME% /account=user /user=%USER_NAME% /password=%PASSWORD% %SERVICE_EXE%
rem installutil %SERVICE_EXE%

echo Done.

pause